package com.qf.j2105.service.impl;


import com.qf.j2105.mapper.MyPagefnMapper;
import com.qf.j2105.po.commonfun;
import com.qf.j2105.po.servetable;
import com.qf.j2105.po.tjtable;
import com.qf.j2105.service.FindFunservice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FindFunServiceImpl implements FindFunservice {
    //注入dao
    @Resource
    private MyPagefnMapper myPagefnMapper;
    @Override
    public List<commonfun> Findcommonfun() {
        List<commonfun> allcommonfun = myPagefnMapper.findAllcommonfun();
        if (allcommonfun != null){
            return allcommonfun;
        }
        return null;
    }

    @Override
    public List<servetable> Findservefun() {
        List<servetable> allservefun = myPagefnMapper.findAllservefun();
        if (allservefun != null){
            return allservefun;
        }
        return null;
    }

    @Override
    public List<tjtable> Findtjfun() {
        List<tjtable> alltjfun = myPagefnMapper.findtjfun();
        if (alltjfun != null){
            return alltjfun;
        }
        return null;
    }
}
